PATCH: version on ostree_repo_commit_modifier_set_sepolicy_from_commit
authorFelix Krull <f_krull@gmx.de>
Tue, 25 Aug 2020 17:12:01 +0000 (19:12 +0200)
committerColin Walters <walters@verbum.org>
Fri, 6 May 2022 16:53:56 +0000 (12:53 -0400)
rust-bindings/rust/gir-files/OSTree-1.0.gir
rust-bindings/rust/src/auto/repo_commit_modifier.rs
rust-bindings/rust/src/auto/versions.txt
rust-bindings/rust/sys/src/auto/versions.txt
rust-bindings/rust/sys/src/lib.rs

index 737c8d14758f8245cd360e11911fc138aecb7834..7d22c5ebe5cdff7b32186eb381f73456a326c978 100644 (file)
@@ -11222,7 +11222,8 @@ policy wins.</doc>
       </method>
       <method name="set_sepolicy_from_commit"
               c:identifier="ostree_repo_commit_modifier_set_sepolicy_from_commit"
-              throws="1">
+              throws="1"
+              version="2020.4">
         <doc xml:space="preserve"
              filename="ostree-repo-commit.c"
              line="4324">In many cases, one wants to create a "derived" commit from base commit.
index 048474aec50ada4634cb96d12151d04f8a4e4b08..f75ae9941d31a9e5d5be3684db4a2dac68a63dd6 100644 (file)
@@ -4,11 +4,13 @@
 
 use gio;
 use glib;
+#[cfg(any(feature = "v2020_4", feature = "dox"))]
 use glib::object::IsA;
 use glib::translate::*;
 use glib::GString;
 use ostree_sys;
 use std::boxed::Box as Box_;
+#[cfg(any(feature = "v2020_4", feature = "dox"))]
 use std::ptr;
 use Repo;
 use RepoCommitFilterResult;
@@ -67,6 +69,7 @@ impl RepoCommitModifier {
         }
     }
 
+    #[cfg(any(feature = "v2020_4", feature = "dox"))]
     pub fn set_sepolicy_from_commit<P: IsA<gio::Cancellable>>(&self, repo: &Repo, rev: &str, cancellable: Option<&P>) -> Result<(), glib::Error> {
         unsafe {
             let mut error = ptr::null_mut();
index 68dbffb7d495887c45f683f1efc61e2c23ed20a6..ff33bb3edf300576780c92320184c769c9cc1baa 100644 (file)
@@ -1,2 +1,2 @@
 Generated by gir (https://github.com/gtk-rs/gir @ 2d1ffab1)
-from gir-files (https://github.com/gtk-rs/gir-files @ 48a4a23+)
+from gir-files (https://github.com/gtk-rs/gir-files @ b1a822b+)
index 68dbffb7d495887c45f683f1efc61e2c23ed20a6..ff33bb3edf300576780c92320184c769c9cc1baa 100644 (file)
@@ -1,2 +1,2 @@
 Generated by gir (https://github.com/gtk-rs/gir @ 2d1ffab1)
-from gir-files (https://github.com/gtk-rs/gir-files @ 48a4a23+)
+from gir-files (https://github.com/gtk-rs/gir-files @ b1a822b+)
index 80e1a5ce11df9ec84e8b2b9884726586b9ad68fb..ed4508e3b51f8dd95ee2fb36023774b193de0835 100644 (file)
@@ -1102,6 +1102,7 @@ extern "C" {
     #[cfg(any(feature = "v2017_13", feature = "dox"))]
     pub fn ostree_repo_commit_modifier_set_devino_cache(modifier: *mut OstreeRepoCommitModifier, cache: *mut OstreeRepoDevInoCache);
     pub fn ostree_repo_commit_modifier_set_sepolicy(modifier: *mut OstreeRepoCommitModifier, sepolicy: *mut OstreeSePolicy);
+    #[cfg(any(feature = "v2020_4", feature = "dox"))]
     pub fn ostree_repo_commit_modifier_set_sepolicy_from_commit(modifier: *mut OstreeRepoCommitModifier, repo: *mut OstreeRepo, rev: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
     pub fn ostree_repo_commit_modifier_set_xattr_callback(modifier: *mut OstreeRepoCommitModifier, callback: OstreeRepoCommitModifierXattrCallback, destroy: glib::GDestroyNotify, user_data: gpointer);
     pub fn ostree_repo_commit_modifier_unref(modifier: *mut OstreeRepoCommitModifier);